package com.example.xn.snakegame;

import android.app.Service;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.IBinder;
import android.support.annotation.Nullable;

/**
 * Created by xn on 17-3-23.
 */

public class GnamemusicService extends Service {
    MygameApplication mygameApplication;

    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
       MygameApplication.mediaPlayer.start();
        return super.onStartCommand(intent, flags, startId);
    }
}
